<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>uCXpresso.BLE: list.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../upnp.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">uCXpresso.BLE
   &#160;<span id="projectnumber">v1.0.4</span>
   </div>
   <div id="projectbrief">RTOS C++ Framework for Bluetooth Low Energy</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('da/d23/list_8h_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">list.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> ===============================================================================</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> Name        : list.h</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> Author      : uCXpresso</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> Version     : v1.0.0</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> Date        : 2011/12/28</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> Copyright   : Copyright (C) www.embeda.com.tw</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> Description : Data List class</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> ===============================================================================</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">                                 History</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> ---------+---------+--------------------------------------------+-------------</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> DATE     | VERSION |   DESCRIPTIONS                             |  By</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> ---------+---------+--------------------------------------------+-------------</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> 2012/12/28 v1.0.0  First Edition                               Jason</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> ===============================================================================</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef LIST_H_</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LIST_H_</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;class/object.h&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &quot;class/mutex.h&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">void</span>* LIST_POS;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">/*A data element type</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">void</span>* ELEM_PTR;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../df/db6/class_c_list.html">   37</a></span>&#160;<span class="keyword">class </span><a class="code" href="../../df/db6/class_c_list.html">CList</a>: <span class="keyword">public</span> <a class="code" href="../../dc/dac/class_c_object.html">CObject</a> {</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="../../df/db6/class_c_list.html#aba5942fb294f8f3381bef96ffc8f5054">count</a>();</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="../../df/db6/class_c_list.html#ab4db98accd12debb4330ad97b8b1dc37">isEmpty</a>();</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keyword">virtual</span> LIST_POS <a class="code" href="../../df/db6/class_c_list.html#af77b9f95976788ad6b74e825fad12e94">addHead</a>(ELEM_PTR elem);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keyword">virtual</span> LIST_POS <a class="code" href="../../df/db6/class_c_list.html#a81c34b9127ccce385b6699b9eaa799d1">addTail</a>(ELEM_PTR elem);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keyword">virtual</span> ELEM_PTR <a class="code" href="../../df/db6/class_c_list.html#acc4c74c1684f630c99988a477b0a3eb7">getHead</a>();</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keyword">virtual</span> ELEM_PTR <a class="code" href="../../df/db6/class_c_list.html#a4bb6b07562fdd0cc376e7f300ed3b9c0">getTail</a>();</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keyword">virtual</span> ELEM_PTR <a class="code" href="../../df/db6/class_c_list.html#a54795f456c006f4ab3647d5abfaa806c">getAt</a>(LIST_POS pos);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keyword">virtual</span> ELEM_PTR <a class="code" href="../../df/db6/class_c_list.html#a54795f456c006f4ab3647d5abfaa806c">getAt</a>(<span class="keywordtype">int</span> index);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keyword">virtual</span> ELEM_PTR <a class="code" href="../../df/db6/class_c_list.html#a0e0dfa3bc3d93b9708d4a454e91d0994">removeHead</a>();</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keyword">virtual</span> ELEM_PTR <a class="code" href="../../df/db6/class_c_list.html#adc7cb308e77a9e0550eecce9333b071b">removeTail</a>();</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keyword">virtual</span> ELEM_PTR <a class="code" href="../../df/db6/class_c_list.html#a4baf624e719e27016de00005bbbc0f7b">removeAt</a>(LIST_POS pos);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>  <a class="code" href="../../df/db6/class_c_list.html#a5ee3e7395c54395c7f603c08a1b9d5cf">removeAll</a>(<span class="keywordtype">bool</span> free_elem=<span class="keyword">false</span>, <span class="keywordtype">bool</span> isObj=<span class="keyword">false</span>);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keyword">virtual</span> LIST_POS <a class="code" href="../../df/db6/class_c_list.html#a9d1f8b32387ace522e2fa3a5bf68975a">getHeadPos</a>();</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keyword">virtual</span> LIST_POS <a class="code" href="../../df/db6/class_c_list.html#a8cfadd6c7dd3dd6688e314b732e7b48f">getTailPos</a>();</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="keyword">virtual</span> LIST_POS <a class="code" href="../../df/db6/class_c_list.html#a30c0314e7dc83d1ba735f673b09e4deb">getNext</a>(LIST_POS pos);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="keyword">virtual</span> LIST_POS <a class="code" href="../../df/db6/class_c_list.html#a4cf8035d25af022ba9c054c1b4f5b61c">getPrev</a>(LIST_POS pos);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keyword">virtual</span> LIST_POS <a class="code" href="../../df/db6/class_c_list.html#ac10ff6ad96cb1a7aebb866d2a1cf62bf">find</a>(ELEM_PTR elem);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keyword">virtual</span> LIST_POS <a class="code" href="../../df/db6/class_c_list.html#a02ae0a29f9466904e349a984d287a756">insertBefore</a>(LIST_POS pos, ELEM_PTR elem);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="keyword">virtual</span> LIST_POS <a class="code" href="../../df/db6/class_c_list.html#ac30a5a1368438fbcf58b13bf4f2f44ad">insertAfter</a>(LIST_POS pos, ELEM_PTR elem);</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="../../df/db6/class_c_list.html#aab328a02021b5988496f2dbb631bd71c">  146</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> ELEM_PTR <a class="code" href="../../df/db6/class_c_list.html#aab328a02021b5988496f2dbb631bd71c">operator []</a>(<span class="keywordtype">int</span> index) {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../df/db6/class_c_list.html#a54795f456c006f4ab3647d5abfaa806c">getAt</a>(index);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    }</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <a class="code" href="../../df/db6/class_c_list.html">CList</a>();</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="../../df/db6/class_c_list.html">CList</a>();</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <a class="code" href="../../d3/d0d/class_c_mutex.html">CMutex</a> m_mutex;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    LIST_POS m_ndHead;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    LIST_POS m_ndTail;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordtype">int</span> length;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keyword">virtual</span> LIST_POS alloc();</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> free(LIST_POS pos);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;};</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> CType&gt;</div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="../../da/d59/class_c_list_t.html">  169</a></span>&#160;<span class="keyword">class </span><a class="code" href="../../da/d59/class_c_list_t.html">CListT</a>: <span class="keyword">public</span> <a class="code" href="../../df/db6/class_c_list.html">CList</a> {</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="../../da/d59/class_c_list_t.html#a1135a93b349ac4ae024e45b8fbdc2842">  171</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> LIST_POS <a class="code" href="../../da/d59/class_c_list_t.html#a1135a93b349ac4ae024e45b8fbdc2842">addHeadT</a>(CType* elem) {</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../df/db6/class_c_list.html#af77b9f95976788ad6b74e825fad12e94">CList::addHead</a>(elem);</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    }</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="../../da/d59/class_c_list_t.html#a580d6fa5153806358134cda4fdd7810e">  175</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> LIST_POS <a class="code" href="../../da/d59/class_c_list_t.html#a580d6fa5153806358134cda4fdd7810e">addTailT</a>(CType* elem) {</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../df/db6/class_c_list.html#a81c34b9127ccce385b6699b9eaa799d1">CList::addTail</a>(elem);</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    }</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="../../da/d59/class_c_list_t.html#a4645ce0c83fb57db7b7c7b5baeff73ec">  179</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> CType* <a class="code" href="../../da/d59/class_c_list_t.html#a4645ce0c83fb57db7b7c7b5baeff73ec">getHeadT</a>() {</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        <span class="keywordflow">return</span> (CType *)<a class="code" href="../../df/db6/class_c_list.html#acc4c74c1684f630c99988a477b0a3eb7">CList::getHead</a>();</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    }</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="../../da/d59/class_c_list_t.html#a3084c493b524681a3bc40be808bc5b93">  183</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> CType* <a class="code" href="../../da/d59/class_c_list_t.html#a3084c493b524681a3bc40be808bc5b93">getTailT</a>() {</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <span class="keywordflow">return</span> (CType*)<a class="code" href="../../df/db6/class_c_list.html#a4bb6b07562fdd0cc376e7f300ed3b9c0">CList::getTail</a>();</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    }</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="../../da/d59/class_c_list_t.html#a18acff60ba234e5f4e6728be0c66a171">  187</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> CType* <a class="code" href="../../da/d59/class_c_list_t.html#a18acff60ba234e5f4e6728be0c66a171">getAtT</a>(LIST_POS pos) {</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        <span class="keywordflow">return</span> (CType*)<a class="code" href="../../df/db6/class_c_list.html#a54795f456c006f4ab3647d5abfaa806c">CList::getAt</a>(pos);</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    }</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;</div>
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="../../da/d59/class_c_list_t.html#a8d5f6f7d4251425a6583f4ffe6ccdd37">  191</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> CType* <a class="code" href="../../da/d59/class_c_list_t.html#a8d5f6f7d4251425a6583f4ffe6ccdd37">removeHeadT</a>() {</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        <span class="keywordflow">return</span> (CType*)<a class="code" href="../../df/db6/class_c_list.html#a0e0dfa3bc3d93b9708d4a454e91d0994">CList::removeHead</a>();</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    }</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="../../da/d59/class_c_list_t.html#acb8c0cc7df7297b766065d3d89eba530">  195</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> CType* <a class="code" href="../../da/d59/class_c_list_t.html#acb8c0cc7df7297b766065d3d89eba530">removeTailT</a>() {</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        <span class="keywordflow">return</span> (CType*)<a class="code" href="../../df/db6/class_c_list.html#adc7cb308e77a9e0550eecce9333b071b">CList::removeTail</a>();</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    }</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="../../da/d59/class_c_list_t.html#abf84e4b6b4cb035ea2a5c174acf8da45">  199</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="../../da/d59/class_c_list_t.html#abf84e4b6b4cb035ea2a5c174acf8da45">removeAtT</a>(CType* elem) {</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        LIST_POS pos;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;        pos = <a class="code" href="../../df/db6/class_c_list.html#ac10ff6ad96cb1a7aebb866d2a1cf62bf">find</a>(elem);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        <span class="keywordflow">if</span> ( pos!=NULL ) {</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;            <a class="code" href="../../df/db6/class_c_list.html#a4baf624e719e27016de00005bbbc0f7b">CList::removeAt</a>(pos);</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        }</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    }</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="../../da/d59/class_c_list_t.html#a33519401fb498e0b5f64e2da041726cc">  207</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="../../da/d59/class_c_list_t.html#a33519401fb498e0b5f64e2da041726cc">removeAllT</a>(<span class="keywordtype">bool</span> free_elem=<span class="keyword">false</span>) {</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        CType* obj;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        <span class="keywordflow">while</span>( (obj=<a class="code" href="../../da/d59/class_c_list_t.html#a8d5f6f7d4251425a6583f4ffe6ccdd37">removeHeadT</a>())!=NULL ) {</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;            <span class="keywordflow">if</span> ( free_elem ) {</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;                <span class="keyword">delete</span> obj;</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;            }</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;        }</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    }</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="../../da/d59/class_c_list_t.html#affdeb2786698f49ea1dda928591cbc5e">  216</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> LIST_POS <a class="code" href="../../da/d59/class_c_list_t.html#affdeb2786698f49ea1dda928591cbc5e">insertBeforeT</a>(LIST_POS pos, CType* elem) {</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../df/db6/class_c_list.html#a02ae0a29f9466904e349a984d287a756">CList::insertBefore</a>(pos, elem);</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    }</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;</div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="../../da/d59/class_c_list_t.html#abcd6ee703a0256c5ecd6f04fd7c83e6b">  220</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> LIST_POS <a class="code" href="../../da/d59/class_c_list_t.html#abcd6ee703a0256c5ecd6f04fd7c83e6b">insertAfterT</a>(LIST_POS pos, CType* elem) {</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../df/db6/class_c_list.html#ac30a5a1368438fbcf58b13bf4f2f44ad">CList::insertAfter</a>(pos, elem);</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    }</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;};</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LIST_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_c_list_html_a02ae0a29f9466904e349a984d287a756"><div class="ttname"><a href="../../df/db6/class_c_list.html#a02ae0a29f9466904e349a984d287a756">CList::insertBefore</a></div><div class="ttdeci">virtual LIST_POS insertBefore(LIST_POS pos, ELEM_PTR elem)</div></div>
<div class="ttc" id="class_c_list_t_html_a18acff60ba234e5f4e6728be0c66a171"><div class="ttname"><a href="../../da/d59/class_c_list_t.html#a18acff60ba234e5f4e6728be0c66a171">CListT::getAtT</a></div><div class="ttdeci">virtual CType * getAtT(LIST_POS pos)</div><div class="ttdef"><b>Definition:</b> list.h:187</div></div>
<div class="ttc" id="class_c_list_html_a81c34b9127ccce385b6699b9eaa799d1"><div class="ttname"><a href="../../df/db6/class_c_list.html#a81c34b9127ccce385b6699b9eaa799d1">CList::addTail</a></div><div class="ttdeci">virtual LIST_POS addTail(ELEM_PTR elem)</div></div>
<div class="ttc" id="class_c_list_t_html_a33519401fb498e0b5f64e2da041726cc"><div class="ttname"><a href="../../da/d59/class_c_list_t.html#a33519401fb498e0b5f64e2da041726cc">CListT::removeAllT</a></div><div class="ttdeci">virtual void removeAllT(bool free_elem=false)</div><div class="ttdef"><b>Definition:</b> list.h:207</div></div>
<div class="ttc" id="class_c_list_t_html_a8d5f6f7d4251425a6583f4ffe6ccdd37"><div class="ttname"><a href="../../da/d59/class_c_list_t.html#a8d5f6f7d4251425a6583f4ffe6ccdd37">CListT::removeHeadT</a></div><div class="ttdeci">virtual CType * removeHeadT()</div><div class="ttdef"><b>Definition:</b> list.h:191</div></div>
<div class="ttc" id="class_c_list_html_ac10ff6ad96cb1a7aebb866d2a1cf62bf"><div class="ttname"><a href="../../df/db6/class_c_list.html#ac10ff6ad96cb1a7aebb866d2a1cf62bf">CList::find</a></div><div class="ttdeci">virtual LIST_POS find(ELEM_PTR elem)</div></div>
<div class="ttc" id="class_c_list_t_html_a4645ce0c83fb57db7b7c7b5baeff73ec"><div class="ttname"><a href="../../da/d59/class_c_list_t.html#a4645ce0c83fb57db7b7c7b5baeff73ec">CListT::getHeadT</a></div><div class="ttdeci">virtual CType * getHeadT()</div><div class="ttdef"><b>Definition:</b> list.h:179</div></div>
<div class="ttc" id="class_c_list_html_a4baf624e719e27016de00005bbbc0f7b"><div class="ttname"><a href="../../df/db6/class_c_list.html#a4baf624e719e27016de00005bbbc0f7b">CList::removeAt</a></div><div class="ttdeci">virtual ELEM_PTR removeAt(LIST_POS pos)</div></div>
<div class="ttc" id="class_c_list_html_a54795f456c006f4ab3647d5abfaa806c"><div class="ttname"><a href="../../df/db6/class_c_list.html#a54795f456c006f4ab3647d5abfaa806c">CList::getAt</a></div><div class="ttdeci">virtual ELEM_PTR getAt(LIST_POS pos)</div></div>
<div class="ttc" id="class_c_list_t_html_a3084c493b524681a3bc40be808bc5b93"><div class="ttname"><a href="../../da/d59/class_c_list_t.html#a3084c493b524681a3bc40be808bc5b93">CListT::getTailT</a></div><div class="ttdeci">virtual CType * getTailT()</div><div class="ttdef"><b>Definition:</b> list.h:183</div></div>
<div class="ttc" id="class_c_list_t_html_affdeb2786698f49ea1dda928591cbc5e"><div class="ttname"><a href="../../da/d59/class_c_list_t.html#affdeb2786698f49ea1dda928591cbc5e">CListT::insertBeforeT</a></div><div class="ttdeci">virtual LIST_POS insertBeforeT(LIST_POS pos, CType *elem)</div><div class="ttdef"><b>Definition:</b> list.h:216</div></div>
<div class="ttc" id="class_c_list_t_html"><div class="ttname"><a href="../../da/d59/class_c_list_t.html">CListT</a></div><div class="ttdef"><b>Definition:</b> list.h:169</div></div>
<div class="ttc" id="class_c_list_t_html_a580d6fa5153806358134cda4fdd7810e"><div class="ttname"><a href="../../da/d59/class_c_list_t.html#a580d6fa5153806358134cda4fdd7810e">CListT::addTailT</a></div><div class="ttdeci">virtual LIST_POS addTailT(CType *elem)</div><div class="ttdef"><b>Definition:</b> list.h:175</div></div>
<div class="ttc" id="class_c_list_html_a0e0dfa3bc3d93b9708d4a454e91d0994"><div class="ttname"><a href="../../df/db6/class_c_list.html#a0e0dfa3bc3d93b9708d4a454e91d0994">CList::removeHead</a></div><div class="ttdeci">virtual ELEM_PTR removeHead()</div></div>
<div class="ttc" id="class_c_list_t_html_abf84e4b6b4cb035ea2a5c174acf8da45"><div class="ttname"><a href="../../da/d59/class_c_list_t.html#abf84e4b6b4cb035ea2a5c174acf8da45">CListT::removeAtT</a></div><div class="ttdeci">virtual void removeAtT(CType *elem)</div><div class="ttdef"><b>Definition:</b> list.h:199</div></div>
<div class="ttc" id="class_c_list_html_a4bb6b07562fdd0cc376e7f300ed3b9c0"><div class="ttname"><a href="../../df/db6/class_c_list.html#a4bb6b07562fdd0cc376e7f300ed3b9c0">CList::getTail</a></div><div class="ttdeci">virtual ELEM_PTR getTail()</div></div>
<div class="ttc" id="class_c_list_html_ac30a5a1368438fbcf58b13bf4f2f44ad"><div class="ttname"><a href="../../df/db6/class_c_list.html#ac30a5a1368438fbcf58b13bf4f2f44ad">CList::insertAfter</a></div><div class="ttdeci">virtual LIST_POS insertAfter(LIST_POS pos, ELEM_PTR elem)</div></div>
<div class="ttc" id="class_c_list_html"><div class="ttname"><a href="../../df/db6/class_c_list.html">CList</a></div><div class="ttdef"><b>Definition:</b> list.h:37</div></div>
<div class="ttc" id="class_c_list_html_a30c0314e7dc83d1ba735f673b09e4deb"><div class="ttname"><a href="../../df/db6/class_c_list.html#a30c0314e7dc83d1ba735f673b09e4deb">CList::getNext</a></div><div class="ttdeci">virtual LIST_POS getNext(LIST_POS pos)</div></div>
<div class="ttc" id="class_c_list_html_acc4c74c1684f630c99988a477b0a3eb7"><div class="ttname"><a href="../../df/db6/class_c_list.html#acc4c74c1684f630c99988a477b0a3eb7">CList::getHead</a></div><div class="ttdeci">virtual ELEM_PTR getHead()</div></div>
<div class="ttc" id="class_c_list_html_aba5942fb294f8f3381bef96ffc8f5054"><div class="ttname"><a href="../../df/db6/class_c_list.html#aba5942fb294f8f3381bef96ffc8f5054">CList::count</a></div><div class="ttdeci">virtual int count()</div></div>
<div class="ttc" id="class_c_list_t_html_acb8c0cc7df7297b766065d3d89eba530"><div class="ttname"><a href="../../da/d59/class_c_list_t.html#acb8c0cc7df7297b766065d3d89eba530">CListT::removeTailT</a></div><div class="ttdeci">virtual CType * removeTailT()</div><div class="ttdef"><b>Definition:</b> list.h:195</div></div>
<div class="ttc" id="class_c_list_t_html_a1135a93b349ac4ae024e45b8fbdc2842"><div class="ttname"><a href="../../da/d59/class_c_list_t.html#a1135a93b349ac4ae024e45b8fbdc2842">CListT::addHeadT</a></div><div class="ttdeci">virtual LIST_POS addHeadT(CType *elem)</div><div class="ttdef"><b>Definition:</b> list.h:171</div></div>
<div class="ttc" id="class_c_mutex_html"><div class="ttname"><a href="../../d3/d0d/class_c_mutex.html">CMutex</a></div><div class="ttdef"><b>Definition:</b> mutex.h:31</div></div>
<div class="ttc" id="class_c_list_html_a5ee3e7395c54395c7f603c08a1b9d5cf"><div class="ttname"><a href="../../df/db6/class_c_list.html#a5ee3e7395c54395c7f603c08a1b9d5cf">CList::removeAll</a></div><div class="ttdeci">virtual void removeAll(bool free_elem=false, bool isObj=false)</div></div>
<div class="ttc" id="class_c_list_html_ab4db98accd12debb4330ad97b8b1dc37"><div class="ttname"><a href="../../df/db6/class_c_list.html#ab4db98accd12debb4330ad97b8b1dc37">CList::isEmpty</a></div><div class="ttdeci">virtual bool isEmpty()</div></div>
<div class="ttc" id="class_c_list_html_a8cfadd6c7dd3dd6688e314b732e7b48f"><div class="ttname"><a href="../../df/db6/class_c_list.html#a8cfadd6c7dd3dd6688e314b732e7b48f">CList::getTailPos</a></div><div class="ttdeci">virtual LIST_POS getTailPos()</div></div>
<div class="ttc" id="class_c_list_html_a4cf8035d25af022ba9c054c1b4f5b61c"><div class="ttname"><a href="../../df/db6/class_c_list.html#a4cf8035d25af022ba9c054c1b4f5b61c">CList::getPrev</a></div><div class="ttdeci">virtual LIST_POS getPrev(LIST_POS pos)</div></div>
<div class="ttc" id="class_c_list_t_html_abcd6ee703a0256c5ecd6f04fd7c83e6b"><div class="ttname"><a href="../../da/d59/class_c_list_t.html#abcd6ee703a0256c5ecd6f04fd7c83e6b">CListT::insertAfterT</a></div><div class="ttdeci">virtual LIST_POS insertAfterT(LIST_POS pos, CType *elem)</div><div class="ttdef"><b>Definition:</b> list.h:220</div></div>
<div class="ttc" id="class_c_list_html_aab328a02021b5988496f2dbb631bd71c"><div class="ttname"><a href="../../df/db6/class_c_list.html#aab328a02021b5988496f2dbb631bd71c">CList::operator[]</a></div><div class="ttdeci">virtual ELEM_PTR operator[](int index)</div><div class="ttdef"><b>Definition:</b> list.h:146</div></div>
<div class="ttc" id="class_c_object_html"><div class="ttname"><a href="../../dc/dac/class_c_object.html">CObject</a></div><div class="ttdef"><b>Definition:</b> object.h:36</div></div>
<div class="ttc" id="class_c_list_html_a9d1f8b32387ace522e2fa3a5bf68975a"><div class="ttname"><a href="../../df/db6/class_c_list.html#a9d1f8b32387ace522e2fa3a5bf68975a">CList::getHeadPos</a></div><div class="ttdeci">virtual LIST_POS getHeadPos()</div></div>
<div class="ttc" id="class_c_list_html_adc7cb308e77a9e0550eecce9333b071b"><div class="ttname"><a href="../../df/db6/class_c_list.html#adc7cb308e77a9e0550eecce9333b071b">CList::removeTail</a></div><div class="ttdeci">virtual ELEM_PTR removeTail()</div></div>
<div class="ttc" id="class_c_list_html_af77b9f95976788ad6b74e825fad12e94"><div class="ttname"><a href="../../df/db6/class_c_list.html#af77b9f95976788ad6b74e825fad12e94">CList::addHead</a></div><div class="ttdeci">virtual LIST_POS addHead(ELEM_PTR elem)</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_d9ab3e09413249e340719d1c246acc66.html">Jason Project</a></li><li class="navelem"><a class="el" href="../../dir_e60b0d0338763df7a227cbecf5ac6106.html">Firmware</a></li><li class="navelem"><a class="el" href="../../dir_c8ef7bdfc8622ceb56fdbfff8f44a6b4.html">lpcxpresso</a></li><li class="navelem"><a class="el" href="../../dir_bc2544560b94a5512f672a61310393b1.html">ucxpresso.lite</a></li><li class="navelem"><a class="el" href="../../dir_89b485e3174b4ad30c1cd4b50a79dec9.html">uCXpresso.BLE</a></li><li class="navelem"><a class="el" href="../../dir_ef35519cefd621f663612ebad34cbfc9.html">inc</a></li><li class="navelem"><a class="el" href="../../dir_23b8956a4518e3beec6402c1bb795b19.html">class</a></li><li class="navelem"><b>list.h</b></li>
    <li class="footer">Generated on Fri Apr 11 2014 23:43:26 for uCXpresso.BLE by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
